export GOOS := windows
export GOARCH := amd64

project ?= $(ENV_PROJECT)

.PHONY: install
install:
	go get -v github.com/spf13/cobra@latest
	go get -v github.com/spf13/viper@latest
	go get -v github.com/xlab/treeprint@latest


.PHONY: build
build:
	go build -o generate.exe main.go


image-build:
	docker build -t generate-project:latest .

# docker run --rm -w $(pwd) -v $(pwd):$(pwd) generate-project:latest create github.leon.com/leon/service
image-run:
	docker run --rm -w $(pwd) -v $(pwd):$(pwd) generate-project:latest create $(project)